<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
  <title>商品详情 | 社交商城</title>
  <!-- Bootstrap 5 CSS -->
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/css/bootstrap.min.css" rel="stylesheet">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.7.0/css/font-awesome.min.css">
  
  <style>
    :root {
      --primary: #4F46E5;
      --secondary: #6B7280;
      --light: #F9FAFB;
      --dark: #1F2937;
      --white: #FFFFFF;
      --border: #E5E7EB;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
      --radius: 8px;
      
      /* 不同风格主题色 */
      --style1: #3B82F6; /* 科技蓝 */
      --style2: #EC4899; /* 活力粉 */
      --style3: #10B981; /* 生态绿 */
      --style4: #F59E0B; /* 温暖橙 */
      --style5: #8B5CF6; /* 梦幻紫 */
      --style6: #111827; /* 商务黑 */
    }
    
    body {
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
      background-color: #f5f5f5;
      color: var(--dark);
      min-height: 100vh;
      padding: 0;
      margin: 0;
      transition: background-color 0.3s ease;
    }
    
    .container {
      max-width: 420px;
      margin: 0 auto;
      background-color: var(--white);
      min-height: 100vh;
      box-shadow: var(--shadow);
      overflow: hidden;
      position: relative;
      transition: background-color 0.3s ease;
    }
    
    /* 商品详情详情页面容器 */
    .product-detail {
      display: none;
      min-height: 100vh;
      flex-direction: column;
    }
    
    .product-detail.active {
      display: flex;
      animation: fadeIn 0.3s ease forwards;
    }
    
    /* 顶部导航栏 */
    .page-header {
      padding: 18px 20px;
      position: relative;
      text-align: center;
      border-bottom: 1px solid var(--border);
      background-color: var(--white);
      transition: all 0.3s ease;
      z-index: 10;
    }
    
    .page-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
    }
    
    .header-actions {
      position: absolute;
      right: 20px;
      top: 50%;
      transform: translateY(-50%);
      display: flex;
      gap: 15px;
    }
    
    .header-btn {
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .header-btn:active {
      transform: scale(0.9);
    }
    
    .back-btn {
      position: absolute;
      left: 20px;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: var(--dark);
      font-size: 20px;
      cursor: pointer;
    }
    
    /* 商品图片轮播 */
    .product-gallery {
      position: relative;
      height: 300px;
      overflow: hidden;
    }
    
    .gallery-image {
      width: 100%;
      height: 100%;
      background-size: cover;
      background-position: center;
    }
    
    .gallery-indicators {
      position: absolute;
      bottom: 10px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: center;
      gap: 6px;
    }
    
    .gallery-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.6);
    }
    
    .gallery-dot.active {
      background-color: white;
    }
    
    /* 商品信息 */
    .product-info {
      padding: 16px;
      background-color: var(--white);
    }
    
    .product-badges {
      display: flex;
      gap: 8px;
      margin-bottom: 8px;
    }
    
    .product-badge {
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 12px;
      font-weight: 500;
      color: white;
      background-color: var(--primary);
    }
    
    .product-title {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 8px;
      line-height: 1.3;
    }
    
    .product-rating {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 12px;
    }
    
    .rating-stars {
      color: #F59E0B;
    }
    
    .rating-count {
      font-size: 14px;
      color: var(--secondary);
    }
    
    .product-price {
      margin-bottom: 16px;
      padding-bottom: 16px;
      border-bottom: 1px solid var(--border);
    }
    
    .price-current {
      font-size: 24px;
      font-weight: 700;
      color: var(--primary);
    }
    
    .price-original {
      font-size: 14px;
      color: var(--secondary);
      text-decoration: line-through;
      margin-left: 8px;
    }
    
    .price-discount {
      font-size: 14px;
      color: #EF4444;
      margin-left: 8px;
    }
    
    /* 商品属性 */
    .product-attributes {
      padding: 16px;
      background-color: var(--white);
      border-bottom: 1px solid var(--border);
    }
    
    .attribute-title {
      font-size: 15px;
      font-weight: 600;
      margin-bottom: 12px;
    }
    
    .attribute-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }
    
    .attribute-option {
      padding: 8px 16px;
      border-radius: 6px;
      border: 1px solid var(--border);
      font-size: 14px;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    
    .attribute-option.selected {
      border-color: var(--primary);
      color: var(--primary);
      background-color: rgba(79, 70, 229, 0.05);
    }
    
    /* 商品详情内容 */
    .product-content {
      padding: 16px;
      background-color: var(--white);
      border-bottom: 1px solid var(--border);
    }
    
    .content-section {
      margin-bottom: 20px;
    }
    
    .section-title {
      font-size: 16px;
      font-weight: 600;
      margin-bottom: 12px;
      padding-bottom: 8px;
      border-bottom: 1px solid var(--border);
    }
    
    .section-content {
      font-size: 14px;
      line-height: 1.6;
      color: var(--dark);
    }
    
    .content-images {
      display: flex;
      flex-direction: column;
      gap: 8px;
      margin-top: 12px;
    }
    
    .content-image {
      width: 100%;
      border-radius: var(--radius);
    }
    
    /* 商品评价 */
    .product-reviews {
      padding: 16px;
      background-color: var(--white);
      border-bottom: 1px solid var(--border);
    }
    
    .review-item {
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
    }
    
    .review-header {
      display: flex;
      justify-content: space-between;
      margin-bottom: 8px;
    }
    
    .review-user {
      font-size: 14px;
      font-weight: 500;
    }
    
    .review-date {
      font-size: 12px;
      color: var(--secondary);
    }
    
    .review-content {
      font-size: 14px;
      line-height: 1.5;
      margin-bottom: 8px;
    }
    
    .review-images {
      display: flex;
      gap: 8px;
    }
    
    .review-image {
      width: 80px;
      height: 80px;
      border-radius: 4px;
      background-size: cover;
      background-position: center;
    }
    
    /* 底部操作栏 */
    .action-bar {
      display: flex;
      padding: 12px;
      border-top: 1px solid var(--border);
      background-color: var(--white);
      position: sticky;
      bottom: 0;
      z-index: 10;
    }
    
    .action-btn {
      flex: 1;
      padding: 12px 0;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }
    
    .action-btn.secondary {
      background-color: var(--light);
      color: var(--dark);
      border: none;
      margin-right: 8px;
    }
    
    .action-btn.primary {
      background-color: var(--primary);
      color: white;
      border: none;
    }
    
    /* 样式切换器 */
    .style-switcher {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1010;
      background-color: white;
      border-radius: 8px;
      box-shadow: var(--shadow);
      overflow: hidden;
      width: 180px;
      transition: all 0.3s ease;
      transform: translateX(0);
      opacity: 1;
    }
    
    .style-switcher.hidden {
      transform: translateX(200px);
      opacity: 0;
      pointer-events: none;
    }
    
    .switcher-toggle {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1020;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background-color: var(--primary);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: var(--shadow);
      border: none;
      font-size: 18px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    
    .switcher-header {
      padding: 10px 16px;
      font-size: 14px;
      font-weight: 600;
      border-bottom: 1px solid #eee;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .switcher-close {
      background: none;
      border: none;
      color: var(--secondary);
      font-size: 16px;
      cursor: pointer;
    }
    
    .switcher-option {
      padding: 12px 16px;
      font-size: 14px;
      cursor: pointer;
      transition: background-color 0.2s;
      display: flex;
      align-items: center;
    }
    
    .switcher-color {
      width: 12px;
      height: 12px;
      border-radius: 50%;
      margin-right: 10px;
    }
    
    .switcher-option:hover {
      background-color: #f9f9f9;
    }
    
    .switcher-option.active {
      background-color: var(--primary);
      color: white;
    }
    
    /* 风格1：科技蓝 */
    .style-1 {
      --primary: var(--style1);
    }
    
    .style-1 .product-gallery {
      box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    }
    
    /* 风格2：活力粉 */
    .style-2 {
      --primary: var(--style2);
    }
    
    .style-2 .page-header,
    .style-2 .action-bar {
      background-color: var(--primary);
      color: white;
      border-color: rgba(255, 255, 255, 0.2);
    }
    
    .style-2 .header-btn,
    .style-2 .page-title,
    .style-2 .back-btn {
      color: white;
    }
    
    .style-2 .action-btn.secondary {
      background-color: rgba(255, 255, 255, 0.2);
      color: white;
    }
    
    /* 风格3：生态绿 */
    .style-3 {
      --primary: var(--style3);
    }
    
    .style-3 .container {
      background-color: #F8FAFC;
    }
    
    .style-3 .product-info,
    .style-3 .product-attributes,
    .style-3 .product-content,
    .style-3 .product-reviews {
      background-color: var(--white);
      border-radius: var(--radius);
      margin: 10px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    }
    
    /* 风格4：温暖橙 */
    .style-4 {
      --primary: var(--style4);
    }
    
    .style-4 .product-price {
      background-color: rgba(245, 158, 11, 0.05);
      padding: 12px;
      border-radius: var(--radius);
    }
    
    .style-4 .attribute-option.selected {
      background-color: rgba(245, 158, 11, 0.1);
    }
    
    /* 风格5：梦幻紫 */
    .style-5 {
      --primary: var(--style5);
    }
    
    .style-5 .container {
      background-color: #FCFAFF;
    }
    
    .style-5 .product-gallery {
      border-radius: 0 0 20px 20px;
    }
    
    .style-5 .product-info {
      margin-top: -10px;
      border-radius: 20px 20px 0 0;
      position: relative;
      z-index: 2;
    }
    
    /* 风格6：商务黑 */
    .style-6 {
      --primary: #60A5FA;
      --secondary: #9CA3AF;
      --light: #1F2937;
      --dark: #F9FAFB;
      --white: #111827;
      --border: #374151;
      --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }
    
    .style-6 body {
      background-color: #030712;
    }
    
    .style-6 .container {
      background-color: var(--white);
    }
    
    .style-6 .page-header,
    .style-6 .action-bar,
    .style-6 .product-info,
    .style-6 .product-attributes,
    .style-6 .product-content,
    .style-6 .product-reviews {
      background-color: var(--light);
      border-bottom-color: var(--border);
    }
    
    .style-6 .header-btn,
    .style-6 .page-title,
    .style-6 .back-btn,
    .style-6 .product-title,
    .style-6 .section-content,
    .style-6 .review-content {
      color: var(--dark);
    }
    
    .style-6 .style-switcher {
      background-color: var(--light);
    }
    
    .style-6 .switcher-header {
      border-bottom-color: var(--border);
      color: var(--dark);
    }
    
    .style-6 .switcher-option {
      color: var(--dark);
    }
    
    .style-6 .switcher-option:hover {
      background-color: rgba(255, 255, 255, 0.1);
    }
    
    /* 动画效果 */
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    /* 响应式调整 */
    @media (max-width: 360px) {
      .product-gallery {
        height: 260px;
      }
      
      .price-current {
        font-size: 22px;
      }
      
      .action-btn {
        font-size: 14px;
        padding: 10px 0;
      }
    }
  </style>
</head>
<body class="style-1">
  <!-- 样式切换器 -->
  <button class="switcher-toggle">
    <i class="fa fa-paint-brush"></i>
  </button>
  
  <div class="style-switcher hidden">
    <div class="switcher-header">
      选择页面样式
      <button class="switcher-close"><i class="fa fa-times"></i></button>
    </div>
    <div class="switcher-option active" data-style="1">
      <span class="switcher-color" style="background-color: var(--style1);"></span>
      科技蓝
    </div>
    <div class="switcher-option" data-style="2">
      <span class="switcher-color" style="background-color: var(--style2);"></span>
      活力粉
    </div>
    <div class="switcher-option" data-style="3">
      <span class="switcher-color" style="background-color: var(--style3);"></span>
      生态绿
    </div>
    <div class="switcher-option" data-style="4">
      <span class="switcher-color" style="background-color: var(--style4);"></span>
      温暖橙
    </div>
    <div class="switcher-option" data-style="5">
      <span class="switcher-color" style="background-color: var(--style5);"></span>
      梦幻紫
    </div>
    <div class="switcher-option" data-style="6">
      <span class="switcher-color" style="background-color: var(--style6);"></span>
      商务黑
    </div>
  </div>
  
  <div class="container">
    <!-- 风格1：科技蓝商品详情 -->
    <div class="product-detail active" id="detail1">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/96/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">热销</span>
          <span class="product-badge">正品保障</span>
        </div>
        <h2 class="product-title">无线蓝牙耳机 主动降噪 长续航 高清通话</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.5 (128评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥299</span>
          <span class="price-original">¥399</span>
          <span class="price-discount">省¥100</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">颜色</div>
        <div class="attribute-options">
          <div class="attribute-option selected">白色</div>
          <div class="attribute-option">黑色</div>
          <div class="attribute-option">蓝色</div>
          <div class="attribute-option">绿色</div>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">套餐</div>
        <div class="attribute-options">
          <div class="attribute-option selected">标准版</div>
          <div class="attribute-option">标准版+充电盒</div>
          <div class="attribute-option">豪华版+收纳袋</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            这款无线蓝牙耳机采用最新蓝牙5.2技术，连接更稳定，传输更快。主动降噪功能有效隔绝环境噪音，让您专注于音乐或通话。30小时超长续航，满足您的日常使用需求。IPX7级防水，运动、雨天都能使用。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/96/800/500" alt="商品详情图" class="content-image">
            <img src="https://picsum.photos/id/20/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
        
        <div class="content-section">
          <h3 class="section-title">规格参数</h3>
          <div class="section-content">
            <p>• 蓝牙版本：5.2</p>
            <p>• 续航时间：30小时</p>
            <p>• 充电接口：Type-C</p>
            <p>• 防水等级：IPX7</p>
            <p>• 重量：4.5g/只</p>
          </div>
        </div>
      </div>
      
      <div class="product-reviews">
        <h3 class="section-title">用户评价 (128)</h3>
        
        <div class="review-item">
          <div class="review-header">
            <span class="review-user">张先生</span>
            <span class="review-date">2023-05-15</span>
          </div>
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
          </div>
          <div class="review-content">
            音质很好，降噪效果超出预期，戴着跑步也不会掉，续航也不错，充一次电可以用很久。
          </div>
          <div class="review-images">
            <div class="review-image" style="background-image: url('https://picsum.photos/id/96/200/200');"></div>
          </div>
        </div>
        
        <div class="review-item">
          <div class="review-header">
            <span class="review-user">李女士</span>
            <span class="review-date">2023-05-10</span>
          </div>
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-o"></i>
          </div>
          <div class="review-content">
            外观很漂亮，蓝色很清新，通话清晰，就是佩戴久了有点不舒服，总体来说值得购买。
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
    
    <!-- 风格2：活力粉商品详情 -->
    <div class="product-detail" id="detail2">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/64/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">新品</span>
          <span class="product-badge">限量</span>
        </div>
        <h2 class="product-title">夏季碎花连衣裙 收腰显瘦 气质女神范 多种花色</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.6 (328评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥159</span>
          <span class="price-original">¥259</span>
          <span class="price-discount">省¥100</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">颜色</div>
        <div class="attribute-options">
          <div class="attribute-option selected">粉色碎花</div>
          <div class="attribute-option">蓝色碎花</div>
          <div class="attribute-option">黄色碎花</div>
          <div class="attribute-option">白色碎花</div>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">尺码</div>
        <div class="attribute-options">
          <div class="attribute-option">XS</div>
          <div class="attribute-option selected">S</div>
          <div class="attribute-option">M</div>
          <div class="attribute-option">L</div>
          <div class="attribute-option">XL</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            夏季新款碎花连衣裙，采用轻盈透气面料，穿着舒适凉爽。收腰设计，凸显身材曲线，显瘦效果好。多种花色可选，适合各种场合穿着，轻松打造女神气质。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/64/800/500" alt="商品详情图" class="content-image">
            <img src="https://picsum.photos/id/21/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
        
        <div class="content-section">
          <h3 class="section-title">尺码信息</h3>
          <div class="section-content">
            <p>• XS：胸围84cm，腰围68cm，长度85cm</p>
            <p>• S：胸围88cm，腰围72cm，长度87cm</p>
            <p>• M：胸围92cm，腰围76cm，长度89cm</p>
            <p>• L：胸围96cm，腰围80cm，长度91cm</p>
            <p>• XL：胸围100cm，腰围84cm，长度93cm</p>
          </div>
        </div>
      </div>
      
      <div class="product-reviews">
        <h3 class="section-title">用户评价 (328)</h3>
        
        <div class="review-item">
          <div class="review-header">
            <span class="review-user">王女士</span>
            <span class="review-date">2023-06-02</span>
          </div>
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
          </div>
          <div class="review-content">
            裙子太漂亮了，面料轻薄透气，夏天穿正好，花色很显气质，已经推荐给朋友了！
          </div>
          <div class="review-images">
            <div class="review-image" style="background-image: url('https://picsum.photos/id/64/200/200');"></div>
            <div class="review-image" style="background-image: url('https://picsum.photos/id/21/200/200');"></div>
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
    
    <!-- 风格3：生态绿商品详情 -->
    <div class="product-detail" id="detail3">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/131/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">有机</span>
          <span class="product-badge">环保</span>
        </div>
        <h2 class="product-title">竹制餐具套装 便携环保 可重复使用 含刀叉勺筷</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.5 (216评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥79</span>
          <span class="price-original">¥99</span>
          <span class="price-discount">省¥20</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">套装规格</div>
        <div class="attribute-options">
          <div class="attribute-option selected">四人份套装</div>
          <div class="attribute-option">双人份套装</div>
          <div class="attribute-option">单人便携装</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            采用100%天然竹材制作，不含有害物质，安全环保。可重复使用，替代一次性餐具，减少环境污染。套装包含刀、叉、勺、筷，满足日常用餐需求。配备便携收纳袋，方便外出携带。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/131/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
    
    <!-- 风格4：温暖橙商品详情 -->
    <div class="product-detail" id="detail4">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/292/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">热销</span>
          <span class="product-badge">有机</span>
        </div>
        <h2 class="product-title">进口坚果礼盒 混合装 巴旦木 腰果 核桃 礼盒包装</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.7 (528评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥169</span>
          <span class="price-original">¥229</span>
          <span class="price-discount">省¥60</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">规格</div>
        <div class="attribute-options">
          <div class="attribute-option selected">500g礼盒装</div>
          <div class="attribute-option">1000g礼盒装</div>
          <div class="attribute-option">2000g尊享礼盒</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            精选全球优质坚果，包含巴旦木、腰果、核桃、碧根果等多种品种，营养丰富。采用密封包装，保持坚果新鲜口感。礼盒包装精美，适合送礼或自用，是健康零食的理想选择。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/292/800/500" alt="商品详情图" class="content-image">
            <img src="https://picsum.photos/id/431/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
    
    <!-- 风格5：梦幻紫商品详情 -->
    <div class="product-detail" id="detail5">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/99/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">热销</span>
          <span class="product-badge">纯天然</span>
        </div>
        <h2 class="product-title">玻尿酸保湿精华液 30ml 深层补水 提亮肤色</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.6 (428评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥259</span>
          <span class="price-original">¥329</span>
          <span class="price-discount">省¥70</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">规格</div>
        <div class="attribute-options">
          <div class="attribute-option selected">30ml</div>
          <div class="attribute-option">50ml</div>
          <div class="attribute-option">100ml超值装</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            富含高浓度玻尿酸成分，能够深层补水，持久保湿，改善肌肤干燥问题。添加多种植物提取物，温和不刺激，适合各种肤质使用。长期使用能有效提亮肤色，改善细纹，使肌肤水润有弹性。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/99/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
    
    <!-- 风格6：商务黑商品详情 -->
    <div class="product-detail" id="detail6">
      <div class="page-header">
        <button class="back-btn"><i class="fa fa-arrow-left"></i></button>
        <h1 class="page-title">商品详情</h1>
        <div class="header-actions">
          <button class="header-btn"><i class="fa fa-share-alt"></i></button>
          <button class="header-btn"><i class="fa fa-heart-o"></i></button>
          <button class="header-btn"><i class="fa fa-shopping-cart"></i></button>
        </div>
      </div>
      
      <div class="product-gallery">
        <div class="gallery-image" style="background-image: url('https://picsum.photos/id/160/800/800');"></div>
        <div class="gallery-indicators">
          <div class="gallery-dot active"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
          <div class="gallery-dot"></div>
        </div>
      </div>
      
      <div class="product-info">
        <div class="product-badges">
          <span class="product-badge">新品</span>
          <span class="product-badge">正品保障</span>
        </div>
        <h2 class="product-title">超薄笔记本电脑 14英寸 酷睿i7 16GB 512GB SSD</h2>
        <div class="product-rating">
          <div class="rating-stars">
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star"></i>
            <i class="fa fa-star-half-o"></i>
          </div>
          <span class="rating-count">4.7 (156评价)</span>
        </div>
        <div class="product-price">
          <span class="price-current">¥5999</span>
          <span class="price-original">¥6599</span>
          <span class="price-discount">省¥600</span>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">配置</div>
        <div class="attribute-options">
          <div class="attribute-option selected">i7/16GB/512GB</div>
          <div class="attribute-option">i7/16GB/1TB</div>
          <div class="attribute-option">i9/32GB/1TB</div>
        </div>
      </div>
      
      <div class="product-attributes">
        <div class="attribute-title">颜色</div>
        <div class="attribute-options">
          <div class="attribute-option selected">深空灰</div>
          <div class="attribute-option">银色</div>
          <div class="attribute-option">蓝色</div>
        </div>
      </div>
      
      <div class="product-content">
        <div class="content-section">
          <h3 class="section-title">商品详情</h3>
          <div class="section-content">
            这款超薄笔记本电脑搭载最新酷睿i7处理器，性能强劲，处理多任务轻松自如。16GB大内存搭配512GB高速SSD，运行流畅，存储充足。14英寸全高清屏幕，色彩还原真实。轻薄便携设计，续航时间长达12小时，满足移动办公需求。
          </div>
          <div class="content-images">
            <img src="https://picsum.photos/id/160/800/500" alt="商品详情图" class="content-image">
            <img src="https://picsum.photos/id/119/800/500" alt="商品详情图" class="content-image">
          </div>
        </div>
      </div>
      
      <div class="action-bar">
        <button class="action-btn secondary">
          <i class="fa fa-heart-o"></i> 收藏
        </button>
        <button class="action-btn secondary">
          <i class="fa fa-shopping-cart"></i> 加入购物车
        </button>
        <button class="action-btn primary">
          <i class="fa fa-bolt"></i> 立即购买
        </button>
      </div>
    </div>
  </div>
  
  <!-- Bootstrap JS -->
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
  
  <script>
    // 当前状态
    let currentStyle = 1;
    
    // DOM元素
    const switcherToggle = document.querySelector('.switcher-toggle');
    const switcher = document.querySelector('.style-switcher');
    const switcherClose = document.querySelector('.switcher-close');
    const switcherOptions = document.querySelectorAll('.switcher-option');
    const detailPages = {
      1: document.getElementById('detail1'),
      2: document.getElementById('detail2'),
      3: document.getElementById('detail3'),
      4: document.getElementById('detail4'),
      5: document.getElementById('detail5'),
      6: document.getElementById('detail6')
    };
    const bodyElement = document.body;
    const backButtons = document.querySelectorAll('.back-btn');
    
    // 初始化
    function init() {
      // 初始化属性选择
      initAttributeSelection();
      
      // 初始化图片轮播指示器
      initGalleryIndicators();
      
      // 初始化收藏按钮
      initFavoriteButtons();
      
      // 切换器控制
      switcherToggle.addEventListener('click', toggleSwitcher);
      switcherClose.addEventListener('click', toggleSwitcher);
      
      // 切换样式
      switcherOptions.forEach(option => {
        option.addEventListener('click', function() {
          const style = parseInt(this.getAttribute('data-style'));
          switchStyle(style);
          toggleSwitcher();
        });
      });
      
      // 返回      键盘导航切换样式
      document.addEventListener('keydown', function(e) {
        if (e.key === 'ArrowLeft') {
          let prev = currentStyle - 1;
          if (prev < 1) prev = 6;
          switchStyle(prev);
        } else if (e.key === 'ArrowRight') {
          let next = currentStyle + 1;
          if (next > 6) next = 1;
          switchStyle(next);
        }
      });
      
      // 返回按钮
      backButtons.forEach(btn => {
        btn.addEventListener('click', function() {
          // 这里可以添加返回逻辑，例如返回商品列表页
          alert('返回商品列表列表');
        });
      });
    }
    
    // 初始化属性选择
    function initAttributeSelection() {
      document.querySelectorAll('.attribute-option').forEach(option => {
        option.addEventListener('click', function() {
          // 移除同组中其他选项的选中状态
          this.parentElement.querySelectorAll('.attribute-option').forEach(item => {
            item.classList.remove('selected');
          });
          
          // 设置当前当前选项
          this.classList.add('selected');
        });
      });
    }
    
    // 初始化图片轮播指示器
    function initGalleryIndicators() {
      document.querySelectorAll('.gallery-dot').forEach(dot => {
        dot.addEventListener('click', function() {
          // 移除同组中其他指示器的激活状态
          this.parentElement.querySelectorAll('.gallery-dot').forEach(item => {
            item.classList.remove('active');
          });
          
          // 激活当前指示器
          this.classList.add('active');
          
          // 这里可以添加图片切换逻辑
        });
      });
    }
    
    // 初始化收藏按钮
    function initFavoriteButtons() {
      document.querySelectorAll('.header-btn i.fa-heart-o, .header-btn i.fa.fa-heart').forEach(icon => {
        const btn = icon.parentElement;
        btn.addEventListener('click', function() {
          if (icon.classList.contains('fa-heart-o')) {
            icon.classList.remove('fa-heart-o');
            icon.classList.add('fa-heart');
          } else {
            icon.classList.remove('fa-heart');
            icon.classList.add('fa-heart-o');
          }
        });
      });
      
      document.querySelectorAll('.action-btn.secondary i.fa.fa-heart-o, .action-btn.secondary i.fa-heart').forEach(icon => {
        const btn = icon.closest('.action-btn');
        btn.addEventListener('click', function() {
          if (icon.classList.contains('fa-heart-o')) {
            icon.classList.remove('fa-heart-o');
            icon.classList.add('fa-heart');
          } else {
            icon.classList.remove('fa-heart');
            icon.classList.add('fa-heart-o');
          }
        });
      });
    }
    
    // 切换样式选择器显示/隐藏
    function toggleSwitcher() {
      switcher.classList.toggle('hidden');
    }
    
    // 关闭所有页面
    function closeAllPages() {
      Object.values(detailPages).forEach(page => {
        page.classList.remove('active');
      });
    }
    
    // 切换样式
    function switchStyle(style) {
      // 移除所有样式类
      bodyElementElement.classList.remove('style-1', 'style-2', 'style-3', 'style-4', 'style-5', 'style-6');
      
      // 添加当前样式类
      bodyElement.classList.add(`style-${style}`);
      
      // 更新当前样式
      currentStyle = style;
      
      // 更新切换器选中状态
      switcherOptions.forEach(option => {
        option.classList.remove('active');
        if (parseInt(option.getAttribute('data-style')) === style) {
          option.classList.add('active');
        }
      });
      
      // 显示对应页面
      closeAllPages();
      detailPages[style].classList.add('active');
    }
    
    // 启动
    init();
  </script>
</body>
</html>
